Suppress compiler warnings since GCC-12. (Closes: #1016283)
authorMo Zhou <lumin@debian.org>
Sat, 24 Jan 2026 09:06:00 +0000 (10:06 +0100)
committerBastian Germann <bage@debian.org>
Sat, 24 Jan 2026 09:06:00 +0000 (10:06 +0100)
Last-Update: 2022-08-18
Forwarded: https://github.com/oneapi-src/oneTBB/issues/823

Gbp-Pq: Name 1030-warning-flags.patch

cmake/compilers/GNU.cmake

index d9eb1c45765b30b11bf63dd896792d4d6f80e589..d57840421657074b346ab5c2b4f36e9777b8d989 100644 (file)
@@ -26,7 +26,7 @@ else()
     set(TBB_DEF_FILE_PREFIX lin${TBB_ARCH})
 endif()
 
-set(TBB_WARNING_LEVEL -Wall -Wextra $<$<BOOL:${TBB_STRICT}>:-Werror> -Wfatal-errors)
+set(TBB_WARNING_LEVEL -Wall -Wextra $<$<BOOL:${TBB_STRICT}>:-Werror> -Wfatal-errors -Wno-error=uninitialized -Wno-error=array-bounds -Wno-error=use-after-free -Wno-error=address)
 set(TBB_TEST_WARNING_FLAGS -Wshadow -Wcast-qual -Woverloaded-virtual -Wnon-virtual-dtor)
 
 # Depfile options (e.g. -MD) are inserted automatically in some cases.